package com.foreveross.dao.imp;

import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.foreveross.common.SQLUtil;
import com.foreveross.dao.DDManagerDAO;
import com.foreveross.dao.SysRoleManagerDAO;
import com.foreveross.dao.SysRoleMenuManagerDAO;
import com.foreveross.vo.HrCode;
import com.foreveross.vo.SysRole;

@Component("sysRoleMenuManagerDAO")
public class SysRoleMenuManagerDAOImp extends SQLUtil implements SysRoleMenuManagerDAO {	
	
	
	@Override
	public void deleteSysRoleMenuByRoleId(String roleId) throws Exception{
		final String sql = "delete from SysRoleMenu t where t.sysRole='"+roleId+"'";
		updateObejctByHql(sql);
	}
	
	@Override
	public void deleteSysRoleMenuByMenuId(String menuId) throws Exception{
		final String sql = "delete from SysRoleMenu t where t.sysMenu='"+menuId+"'";
		updateObejctByHql(sql);
	}


}
